#ifndef OBJECT_H
#define OBJECT_H

#include <QRect>
#include <QImage>
#include <QRegion>
#include <QBitmap>
#include "config.h"


class Object
{
    friend class Board;
public:

    enum {CART,CHICKEN,DUCK,GOOSE,EGG,SHIT};
    QPoint topLeft;
    virtual QSize getSize()=0;
    QRect rect();
    virtual ~Object();

protected:
    virtual const QImage &getImage()=0;
    virtual int getType()=0;
    virtual QRegion getRegion()=0;
};

#endif // OBJECT_H
